<!DOCTYPE html>
<!-- saved from url=(0069)http://127.0.0.1:8848/%E7%9C%81%E4%BB%BD%E8%81%94%E5%8A%A8/index.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<title></title>
	</head>
	<body>
		<div id="">
			省份：<select name="" id="sid">
				<option value="-1" onchange="ccr();">请选择省份</option>
			</select>
			城市：<select name="" id="cid">
				<option value="-1" onchange="ttr();">请选择城市</option>
			</select>
			区县：<select name="" id="qid">
				<option value="-1" onchange="hhr()">请选择区县</option>
			</select>
			<br>
			你的选择：<label id="bbt"></label>
		</div>
	<script>document.write('<script src="//' + (location.host || 'localhost').split(':')[0] + ':35929/livereload.js?snipver=1"></' + 'script>')</script><script src="./index11_files/livereload.js.下载"></script><script>document.addEventListener('LiveReloadDisconnect', function() { setTimeout(function() { window.location.reload(); }, 500); })</script>
	<script type="text/javascript">
		var sid=['广东省','上海省','福建省','广西省'];
		provinces.push('贵州省');
		var cid=[['佛山市','江门市'],['浦东','浦西'],['福州市','厦门市'],['南宁市','桂林市'],['遵义市','毕节市']];
		var qid=[['南海区','顺德区'],['江海区','新会区'],['徐汇区','长宁区'],['黄浦区','卢湾区'],
		 ['仓山区','鼓楼区'],['思明区','湖里区'],['兴宁区','江南区'],['秀峰区','叠彩区'],['汇川区','红花岗区'],['七星关区','安家井']];
				
		function ccr(){
			var sidobj=document.getElementById('sid');
			var cidobj=document.getElementById('cid');
			cidobj.innerHTML+='<option value="-1">请选择城市</option>';
			if(sidobj.value==-1){
				return;
			}
			var city=citys[sidobj.value];
			for(var i=0;i<city.length;i++){
				city.innerHTML+='<option value="'+i+'">'+city[i]+'</option>';
			}
		function ttr(){
			var sidobj=document.getElementById('sid');
			var cidobj=document.getElementById('cid');
			var sidName=provinces[sidobj.value];
			var cidName=citys[sidobj.value][cidobj.value];
			
			var selctobj=document.getElementById('bbt');
			selctobj.innerText=sidName+":"+cidName;
		}
		function hhr(){
			var sidobj=document.getElementById('sid');
			var cidobj=document.getElementById('cid');
			var qidobj=document.getElementById('qid');
			var sidName=provinces[sidobj.value];
			var cidName=citys[sidobj.value][cidobj.value];
			var qidName=uuuus[sidobj.value][cidobj.value][qidobj.value];
			
			var selctobj=document.getElementById('bbt');
			selctobj.innerText=sidName+":"+cidName+":"+qidName;
		}
		onload=function(){
			var sidobj=document.getElementById('sid')
			for(var i=0;i<provinces.length;i++){
				sidobj.innerHTML+='<option value="'+i+'">'+provinces[i]+'</option>';
			}
		}
	</script>

</body></html>